package com.itcast.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.context.annotation.Configuration;


@Configuration
public class DeadListener {
    @RabbitListener(queues= "deadQueue2")
    public void process(String msg) {
        System.out.println("接受到的消息是： " + msg);
    }
}
